;; set global font size
;(set-face-attribute 'default nil :height 90)

(defun my-console-buffer-face-mode()
  (buffer-face-mode)
  (buffer-face-set 'my-console-face)
  )
(dolist (hook '(term-mode-hook
                ))
  (add-hook hook (lambda () (my-console-buffer-face-mode))))

;; get rid of tool bar
(tool-bar-mode -1)

;; setup different fonts for english and chinese
(if is-linux
    (progn
      ;; setup special font for terminal buffers
      (make-face 'my-console-face)
      ;; (copy-face 'default my-console-face)
      (set-face-attribute 'my-console-face

                          nil
                          :font "DejaVu Sans Mono-9")

      (set-frame-font "WenQuanYi Micro Hei Mono-10")
      (dolist (charset '(kana han symbol cjk-misc bopomofo))
        (set-fontset-font (frame-parameter nil 'font)
                          charset
                          (font-spec :family "WenQuanYi Zen Hei Mono"
                                     :size 16)))
      ))

;; Put scroll bar at right side
(customize-set-variable 'scroll-bar-mode 'right)

